package com.hmall.order.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hmall.common.dto.ResultDTO;
import com.hmall.order.pojo.Order;
import com.hmall.order.pojo.RequestParams;

import javax.servlet.http.HttpServletRequest;

public interface OrderService  extends IService<Order> {
    Long createOrder(RequestParams params);

    ResultDTO pay(Long orderId, String password);

    /**
     * 根据订单id查找订单
     * @param orderId
     * @return
     */
    Order findOrderByOrderId(Long orderId);
}
